import request from '@/utils/request'
//话题主表接口
export function bbsTopicQuery(data) {
  //分页列表
  return request({
    method: 'get',
    url: '/bbsTopic/query',
    params: data,
  })
}

export function bbsTopicQueryById(id) {
  //查询
  return request({
    method: 'get',
    url: '/bbsTopic/query/' + id,
  })
}

export function bbsTopicAdd(data) {
  //添加
  return request({
    method: 'post',
    url: '/bbsTopic/add',
    data,
  })
}

export function bbsTopicDelete(id) {
  //删除
  return request({
    method: 'get',
    url: '/bbsTopic/delete/' + id,
  })
}

export function bbsTopicUpdate(data) {
  //修改
  return request({
    method: 'post',
    url: '/bbsTopic/update',
    data,
  })
}
